<?php


namespace app\Activity\controller;


use app\ApiRest;
use app\activity\model\ActivityItem as ActivityItemModel;


class WxAppActivityItem extends ApiRest
{
    public function getAll()
    {
        $model = new ActivityItemModel();
        $rst = $model->where([ ['status', '=', 1], ['uniacid', '=', $this->_uniacid]])
            ->order('top', 'desc')
            ->select();
        return $this->success($rst);
    }
}